-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Encourage developers to use DLLs for devPlugins #1958
base: master
Are you sure you want to change the base?
Conversation
Text above the plugin needs to be updated. Still says can be either directory or dll path. |
I'm blind |
Sorry meant button, not plugin. But you got it. 👍 |
if (Directory.Exists(setting.Path)) | ||
{ | ||
devDllFiles.AddRange(new DirectoryInfo(setting.Path).GetFiles("*.dll", SearchOption.AllDirectories)); | ||
} | ||
else if (File.Exists(setting.Path)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, let's keep the recursive loading mode but just block setting folders in UI.
Removing this behavior should be an api11 todo so we have time to announce it.
ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsDevPluginLocationsHint", "Add dev plugin load locations.\nThese can be either the directory or DLL path.")); | ||
ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsDevPluginLocationsHint", "Add dev plugin load locations.\nThis must be a path to the plugin DLL.")); | ||
|
||
var locationSelect = Loc.Localize("DalamudDevPluginLocationSelect", "Select Dev Plugin Location"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this label to Select DLL
or similar.
Discussed here.
Adds a button to pick a .dll for the dev plugin path, as well as removes the directory scan logic. While directory search hasn't been encouraged for a while now, there may still be people who use it, so this probably is gonna break someone's workflow.